import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
//全局使用antd框架
import 'antd-mobile/dist/antd-mobile.css';
import {Button} from 'antd-mobile';
//在根组件中使用redux
import {connect,Provider} from 'react-redux';
import store from './store/data';
//导入路由组件
import {BrowserRouter as Router,Link,Route} from 'react-router-dom';
// 答题页面
import DatiCom from './views/Dati/Dati';
// 结算页面
import SettlementCom from './views/Settlement/Settlement';

ReactDOM.render(
  <React.StrictMode>
    <Provider store={store}>
      <Router>
        <Route path='/' component={App} exact></Route>
        <Route path='/dati' component={DatiCom} exact></Route>
        <Route path='/Settlement' component={SettlementCom} exact></Route>
        
      </Router>
    </Provider>
   
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
